package com.demo.dao;

import com.demo.model.Feedback;
import com.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: UserMapper
 * @Author: ChenXueLi
 * @Date: 2018-10-02 11:02
 */
@Mapper
public interface FeedbackMapper {

    /**
     * 添加用户
     * @param feedback
     * @return
     */
    int addFeedback(Feedback feedback);

    /**
     * 删除用户
     * @param feedback
     * @return
     */
    int deleteFeedback(Feedback feedback);

    /**
     * 更新用户
     * @param feedback
     * @return
     */
    int updateFeedback(Feedback feedback);

    /**
     * 根据id查询用户信息
     * @param feedbackId
     * @return
     */
    Feedback getFeedbackById(@Param("feedbackId") Integer feedbackId);

    /**
     * 查询用户列表
     * @param map
     * @return
     */
    List<Feedback> getFeedbackList(Map map);

}
